gsk: Fix a typo
authorMatthias Clasen <mclasen@redhat.com>
Sat, 9 May 2020 23:40:06 +0000 (19:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 9 May 2020 23:40:06 +0000 (19:40 -0400)
We were checking x_offset twice, when we meant to check
x_offset and y_offset. Pointed out by RafaƂ Mikrut.

Fixes: #2726
gsk/gskrendernodeparser.c

index fcacb8b8888efa9738ffc366d584304029a5e1f5..822eb5c405559dc57ce8c594af9e2c05e61f901b 100644 (file)
@@ -2265,7 +2265,7 @@ render_node_print (Printer       *p,
                     if (glyphs[i].glyph == ascii->glyphs[j].glyph &&
                         glyphs[i].geometry.width == ascii->glyphs[j].geometry.width &&
                         glyphs[i].geometry.x_offset == 0 &&
-                        glyphs[i].geometry.x_offset == 0 &&
+                        glyphs[i].geometry.y_offset == 0 &&
                         glyphs[i].attr.is_cluster_start)
                       {
                         g_string_append_c (str, j + MIN_ASCII_GLYPH);